The SimpleMenu Component > FSimpleMenu.registerSkinElement() |
FSimpleMenu.registerSkinElement()
Availability
Flash Player 6.
Usage
sm_instance.registerSkinElement (element,
styleProperty)
Parameters
element - A movie clip instance.
styleProperty - The name of an FStyleFormat property.
Returns
Nothing.
Description
Registers a skin element to a style property. Skin elements are registered to properties in the first frame of the Read Me layer of each skin in the library.
Components are made up of skins, and each skin is composed of several skin elements, each of which can be registered to a property of the FStyleFormat object. These properties are assigned values by the style format assigned to a component. By default, all Macromedia Flash UI components are assigned the globalStyleFormat object, which is an instance of the FStyleFormat object.
Use this method to register custom skin elements and properties to Macromedia Flash UI or custom component skins by editing the code in the first frame of the Read Me layer of each skin in the library.
For more information, see the "Using Components" chapter of Macromedia Flash MX Help (select Help > Using Flash from within the program).
Example
The following code registers the custom skin element, contentArea_mc, to the
face property in the first frame of the Read Me layer of the fsm_contentArea
movie clip in the Component Skins > FSimpleMenu Skins folder in the library:
component.registerSkinElement(contentArea_mc, "face");